package com.jzqf.canvas;

import android.app.FragmentManager;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class CanvasActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        int option = getWindow().getDecorView().getSystemUiVisibility();
        getWindow().getDecorView().setSystemUiVisibility(option | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
        getWindow().setStatusBarColor(Color.TRANSPARENT);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_canvas);

    }

    private void test() {
        ImageView imageView = findViewById(R.id.imageView);
        Drawable drawable = imageView.getDrawable();
        drawable.setTintList(ColorStateList.valueOf(Color.RED));
        imageView.setImageDrawable(drawable);
    }

}
